#!/usr/bin/env python3

import rospy
from DrEmpower_can.msg import get_id
# import DrEmpower as dr

def callback(data):
    import DrEmpower as dr
    id_num = dr.get_id()
    rospy.loginfo("get_id_node: %d" , id_num)


def listener():
    rospy.init_node("get_id", anonymous=True)
    rospy.Subscriber("get_id", get_id, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

